package functional_programming;

import java.util.function.Consumer;

/**
 * Consumer<T>接口
 * 函数式消费型接口
 *
 * void accept(T t)
 * default Consumer<T> andThen(Consumer<? super T> after)
 * */
public class ConsumerDemo<T> implements Consumer<T> {
    @Override
    public  void accept(T t) {
        System.out.println("------------");
        System.out.println(t);
        System.out.println("------------\n");
    }
}
